<template>
  <div class="aside">
    <el-menu
      default-active=""
      background-color="#292B32"
      text-color="#fff"
      active-text-color="#429488"
      unique-opened
      router
    >
      <el-submenu index="1">
        <template slot="title">
          <i class="el-icon-location"></i>
          <span>API</span>
        </template>
        <el-menu-item index="/home/projectlist">项目列表</el-menu-item>
        <el-menu-item index="/home/apilist">api列表</el-menu-item>
      </el-submenu>
      <el-submenu index="2">
        <template slot="title">
          <i class="el-icon-location"></i>
          <span>管理</span>
        </template>
        <el-menu-item index="/admin/createapi">添加api</el-menu-item>
        <el-menu-item index="/admin/mypublish">我发布的api</el-menu-item>
        <el-menu-item index="/admin/createproject">添加项目</el-menu-item>
        <el-menu-item index="/admin/createaccount">添加账户</el-menu-item>
        <el-menu-item index="/admin/accountlist">账户列表</el-menu-item>
      </el-submenu>
    </el-menu>
  </div>
</template>
<style lang="scss" scoped>
.aside {
  height: 100%;
  background-color: #292B32;
  .el-menu {
    border-right: none;
  }
}
</style>
